TOKEN_EXPIRATION = 30 * 24 * 3600

KEYWORDS_INTERNET = 'keywords_internet_'
PRE_INTERNET_TASK = 'pre_internet_task'
PRE_LOCAL_TASK = 'pre_local_task'
LOCAL_TASK = 'local_task'
AIGC_TASK = 'aigc_task'
INTERNET = 'internet_'
INTERNET_TASK = 'internet_task'
KEYWORDS_LOCAL = 'keywords_local_'
POLYMERIZE_TASK = 'polymerization_task'
LAST_TASK = 'last_task'
PERSONAL_DOCUMENTS_CHECK_TASK = 'personal_check_task'

BATCH_KEYWORDS_INTERNET = 'batch_keywords_internet_'
BATCH_PRE_INTERNET_TASK = 'batch_pre_internet_task'
BATCH_LOCAL_TASK = 'batch_local_task'
BATCH_INTERNET = 'batch_internet_'
BATCH_INTERNET_TASK = 'batch_internet_task'

# KEYWORDS_INTERNET = 'test_keywords_internet_'
# PRE_INTERNET_TASK = 'test_pre_internet_task'
# LOCAL_TASK = 'test_local_task'
# INTERNET = 'test_internet_'
# INTERNET_TASK = 'test_internet_task'

# KEYWORDS_INTERNET = 'test_keywords_internet_'
# PRE_INTERNET_TASK = 'test_pre_internet_task'
# LOCAL_TASK = 'test_local_task'
# INTERNET = 'test_internet_'

DEBUG = False


class Config(object):
    JOBS = {
        'id': 'update_refund_data',
        'func': 'app/api/v1/tb_orders:tb_orders_update_refund',
        'args': '',
        'trigger': 'interval',
        'seconds': 5
    }
    SCHEDULER_API_ENABLED = True
